package com.googlecode.kipler.container.dl.operational;

/**
 * 
 * @author İnanç Seylan
 *
 */
public class IndividualNameManager {
	private static IndividualNameManager instance;

	private int lastIndividualNo;

	private IndividualNameManager() {

	}

	public static IndividualNameManager getInstance() {
		if (instance == null) {
			instance = new IndividualNameManager();
		}
		return instance;
	}

	public String generateIndividualName() {
		return " x" + (lastIndividualNo++);
	}
	
	public void reset() {
		lastIndividualNo = 0;
	}
}
